package com.ghy.feign;

import com.ghy.entity.Course;
import com.ghy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author GaoHeYang
 */
@FeignClient("ml-course")
public interface CourseFeign {
    @GetMapping("/api/v1/course/select/{id}")
    Result<Course> select(@PathVariable("id") Long id);
}
